package proxy.staticProxy;

import proxy.SellHouseOneService;
import proxy.SellHouseService;

/**
 * @Author quan
 * @Description 使用
 * @Date 2023/7/27 16:49
 */
public class Main {
    public static void main(String[] args) {
        //创建目标对象：房东
        SellHouseService service = new SellHouseOneService();
        //创建代理对象：中介
        SellHouseService proxy = new StaticProxy(service);
        proxy.sell();
    }
}
